package moe.oil.db.repo;

import moe.oil.db.entity.Session;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Optional;

public interface SessionRepo extends PagingAndSortingRepository<Session, Long> {
    Optional<Session> findBySessionId(Long sessionId);

    Page<Session> findAll(Pageable pageable);

}
